<%# helper/header.html %>

<div class="main-container" id="main-container">
    <div id="bigP">
        <% if(this.coverlist){%>
        <%if(this.coverlist.info.info){%>
            <% if(this.coverlist.info.info.thumb){%>
            <img src="<%= this.coverlist.info.info.thumb%>" alt="">
            <%}%>
            <div class="word">
                <% if(this.coverlist.info.info.summary){%>
                <p><%= this.coverlist.info.info.summary%></p>
                <%}%>
                <% if(this.coverlist.info.info.title){%>
                <p><%= this.coverlist.info.info.title%></p>
                <%}%>
                <% if(this.coverlist.info.info.etitle){%>
                <p><%= this.coverlist.info.info.etitle%></p>
                <%}%>
            </div>
        <%}%>
        <%}%>
    </div>

    <div id="introduce">
        <div class="head">
            <span>介绍</span>
            <span></span>
        </div>
        <div class="wasHide"></div>
        <div class="introduce_content">
            <% if(this.viewlist){ %>
            <p><%= this.viewlist.description %></p>
            <% if(this.viewlist.link==1){%>
            <a href="veryside://link?type=102">查看所有牛仔裤</a>
            <%}%>
            <% if(this.viewlist.picture){ %>
            <img src="<%= this.viewlist.picture %>" alt="">
            <%}%>
            <% if(this.viewlist.view){ var views = this.viewlist.view; %>
                <% views.forEach(function(info){ %>
                    <% if(Object.prototype.toString.call(info.val)==='[object Array]'){%>
                    <p>
                        <i><%= info.label%> ：</i>
                        <span>
                            <% info.val.forEach(function(info){ %>
                            <a href="veryside://link?type=<%= info.type %>&id=<%= info.id%>"><%= info.title %></a>
                            <%})%>
                         </span>
                    </p>
                    <%}else{%>
                    <p>
                        <i><%= info.label %> ：</i>
                        <span><%= info.val %></span>
                    </p>
                    <%}%>
                <%});%>
            <%};%>
            <% if(this.viewlist.logo){%>
            <img src="<%= this.viewlist.logo %>" alt=""/>
            <%}%>
            <% } %>
        </div>
    </div>
    <div id="newest">
        <h2>最新</h2>
        <div class="wasHide"></div>

        <div class="content-item">
            <div class="lists" id="encycover" temId="j-tmpl-encycover">
            </div>
        </div>
    </div>
    <div id="nomore">
        已经没有了
    </div>

</div>
<script id="j-tmpl-encycover" type="text/template">
    {{ for(var i = 0; i < it.list.length; i++){ }}
    <a class="item" href="veryside://link?type={{=it.list[i].type}}&id={{=it.list[i].id}}">
        <div class="index-img lazy" data-original="{{=it.list[i].thumb}}"></div>
        <div class="img-des-block">
            <p>{{=it.list[i].tag}}</p>
            <p>{{=it.list[i].title}}</p>
        </div>
        <div class="heart-num">
            <span></span>
            <em>{{=it.list[i].loves}}</em>
        </div>
    </a>
    {{ } }}
</script>

<%# helper/footer.html %>